package com.action;

import java.util.Map;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;
import org.apache.struts2.interceptor.ApplicationAware;
import org.apache.struts2.interceptor.ServletRequestAware;
import org.apache.struts2.interceptor.ServletResponseAware;
import org.apache.struts2.interceptor.SessionAware;

import com.opensymphony.xwork2.ActionSupport;

public abstract class BaseAction extends ActionSupport implements ServletRequestAware, ServletResponseAware, ApplicationAware, SessionAware  
{
	protected HttpServletRequest  request;
	protected HttpServletResponse response;
	protected HttpSession session;
	protected Map application;

	public void setServletRequest(HttpServletRequest req) 
	{	
		request = req;
		session = request.getSession();
	}

	public void setServletResponse(HttpServletResponse res) 
	{
			response = res;
	}

	public void setApplication(Map<String, Object> application) 
	{
			this.application = application;
	}

	public void setSession(Map<String, Object> arg0) 
	{
			
	}
}